package org.lakesidecdc.outreach.client;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

//@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ProjectEvent {
	
//	@PrimaryKey
//	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
//	@Persistent
	private Date date;
//	@Persistent
	private float volunteerHours;
//	@Persistent
	private float staffHours;
//	@Persistent
	private float cost;
	
	public ProjectEvent() {
		this.date = new Date();
	}
	
	public ProjectEvent(float volunteerHours, float staffHours, float cost) {
		this();	
		this.volunteerHours = volunteerHours;
		this.staffHours = staffHours;
		this.cost = cost;
	}
	
	public ProjectEvent(float volunteerHours, float staffHours, float cost, Date date) {
		this(volunteerHours, staffHours, cost);
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public float getVolunteerHours() {
		return volunteerHours;
	}

	public float getStaffHours() {
		return staffHours;
	}

	public float getCost() {
		return cost;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setVolunteerHours(float volunteerHours) {
		this.volunteerHours = volunteerHours;
	}

	public void setStaffHours(float staffHours) {
		this.staffHours = staffHours;
	}

	public void setCost(float cost) {
		this.cost = cost;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
}
